
class EmployeeTest extends GroovyTestCase {
    void testDisplay(){
        def stud = new Employee(name: 'Mark', id:1)
        def expected = 'Mark20201'
        assertToString(stud.display(), expected)
    }
}

public class Employee{
    String name;
    int id;

    String display(){
        return name + '2020'+id;
    }
}